package com.qst.service.impl;

import com.qst.beans.CategorySecond;
import com.qst.beans.Product;
import com.qst.dao.CategorySecondMapper;
import com.qst.service.CategorySecondService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategorySecondServiceImpl implements CategorySecondService {

    @Autowired
    private CategorySecondMapper secondMapper;
    @Override
    public int deleteById(Integer id) {
        return secondMapper.deleteById(id);
    }

    @Override
    public int save(CategorySecond categorySecond) {
        return secondMapper.save(categorySecond);
    }

    @Override
    public int add(CategorySecond categorySecond) {
        return secondMapper.add(categorySecond);
    }

    @Override
    public List<CategorySecond> findAllCS() {
        return secondMapper.findAllCS();
    }

    @Override
    public List<Product> getAllInCS(Integer csid) {
        return secondMapper.getAllInCS(csid);
    }
}
